﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace GuiNetE
{
    public partial class FormIndialog : Form
    {
        public int I { get; set; }

        public FormIndialog()
        {
            InitializeComponent();
        }



        private void OkButton_Click(object sender, EventArgs e)
        {
            int number;

            bool result = Int32.TryParse( this.textBox1.Text, out number );

            if ( result )
            {
                this.I = System.Convert.ToInt32(this.textBox1.Text);
            }
           
            this.Close();
        }

        private void CancelButton_Click(object sender, EventArgs e)
        {
            this.Close();
        }


    }
}
